this post was submitted on 24 May 2024
11 points (92.3% liked)
General Programming Discussion
7814 readers
1 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why is it fashionable to hate curly braces - I think readability is much better served with explicit block closing tags...
And why do we hate type declarations? I don't mind being able to omit type declarations, it's handy for quick and dirty stuff - but strict type checking is a powerful tool... so much so that PHP has put a lot of effort into adding it after the fact.
There's type declarations and checking in Bend and HVM, it's just Bend has type inferrance. I personally don't mind either way, although for scripting I do like mutable types like in Python, it makes things easier to write, at the cost of needing to know exactly what you're doing or cleaning up bugs.
Yea, when it comes to type declarations it's mostly about an added layer of safety especially when it comes to function layers and code contracts... these are useful things when you have a lot of cooks in the kitchen.
tbh i have no problem with curly brackets either. even though my first language was freebasic (!), i have worked more with curly bracket languages and actually find them quite useful, if not powerful.