Re:Lisping at JPL Revisited
by lisper on Sunday January 29, 2023 @07:12AM
(#34567378)
That's true, but actually using a literal as a object is forbidden by the syntax.
Ruby allows this:
I think that's weird.
[ Parent
| on HN ]
Only because those are special methods only allowed to be directly called by the runtime, doesn't change that the language model is actuall OOP based.
You could have used one of those that is allowed instead, example:
>>> (3.2).is_integer()
False
The parentheses are needed due to parsing precendence.So here is your Ruby like example in Python.
Fair enough. I guess I should probably take another look at Ruby.