2 ms·
> “Syntax sugar” is another liberally used term to mark elements of syntax in a derogatory way It's not only used in a derogatory way. It's just what it is. Sy
by robertlagrant 3y ago
> “Syntax sugar” is another liberally used term to mark elements of syntax in a derogatory way
It's not only used in a derogatory way. It's just what it is. Syntax that doesn't change the power of the language particularly; just lets you save some keystrokes and write things more neatly.
I'm hoping for a λ keyword in Python as a synonym for lambda. Don't need it; would love it.
- speleding 3y agoYou can use a font with ligatures to fake some of this. I use the "JetBrains mono" font that shows >= as ≥ and != as ≠ Ruby already allows utf-8 identifiers, so you can do π=3.14 for example, and `alias λ lambda`, but I agree it would be nice to get a built in alias for lambda.
- psychoslave 3y agoFunilly I would go with a totaly different approach using rather something like "alias incidentally lambda".