radon-project / radon

The Radon Programming Language
https://radon-project.github.io
GNU General Public License v3.0
23 stars 2 forks source link

`static` method support in builtin functions and classes. #122

Open Almas-Ali opened 5 months ago

Almas-Ali commented 5 months ago

Describe the solution you'd like What we have now.

json = Json()
json.loads(...)
json.dumps(...)

What it should be.

Json.loads(...)
Json.dumps(...)

For this we can create a new decorator @static and this will convert that method as static so it can be accessible by Radon as static method.