Programming Languages
librecat
•
8mo ago
•
84%
What are some pros and cons of a `scope` keyword?
In something like C++ you could create a scope like so:
{
// Do something neat here
}
I was wondering about having or maybe even requiring a scope
keyword, which might look like this:
scope
{
// Do something neat here
}
This seems even more relevant in an indentation sensitive language like python:
scope:
pass
Interested to hear any opinions, TIA.
Comments 7