3 ms·
I personally use "is" in my own pythonic language (name is string), "as" sounds like coercion rather than being constraining.
by seanmcdirmid 12y ago
I personally use "is" in my own pythonic language (name is string), "as" sounds like coercion rather than being constraining.
- chton 12y agoI believe it the usage of 'as' comes from the idea that whatever value the variable contains, it should be seen AS and present itself AS the type you're supplying. It doesn't need to be a string, it just needs to act 'as' a string.