Moderators: phlip, Moderators General, Prelates
Mat wrote:lawful characteristics = strongly typed, straightforward syntax, language follows one paradigm instead of allowing many
chaotic characteristics = perl
phlip wrote:Ha HA! Recycled emacs jokes.
EvanED wrote:be aware that when most people say "regular expression" they really mean "something that is almost, but not quite, entirely unlike a regular expression"
enk wrote:Mat wrote:lawful characteristics = strongly typed, straightforward syntax, language follows one paradigm instead of allowing many
chaotic characteristics = perl
I dig your characterization of Python, but according to the above, maybe it should be lawful since it is strongly typed and has straightforward syntax.
Xanthir wrote:Well, there's the clear mapping between static/dynamic typing and law/chaos. I would suggest that strict/loose typing maps to good/evil, but that's perhaps too much typing-related stuff.
Mat wrote:Hmm.. I'm probably using terminology wrong, but I didn't consider python/duck typing strongly typed as you can use objects however you want and any type problems won't become apparent until runtime. That seems enough for a chaotic rating, but maybe less so than some other scripting languages.
phlip wrote:Ha HA! Recycled emacs jokes.
devdog wrote:Javascript: Chaotic Good
confuciusdragon wrote:I think C++ is more of a true neutral language.
I'd view typing as an important component (probably the most important component) of the lawful/chaotic scale, and C++ is a lot more strongly-typed than a lot of languages out there. (It's much weaker than others, but I'd say it tends to be around the median, and probably higher if you look at actual modern C++ usage.)Derek wrote:confuciusdragon wrote:I think C++ is more of a true neutral language.
I would call C true neutral. C++ is definitely chaotic.
enk wrote:Mat wrote:Hmm.. I'm probably using terminology wrong, but I didn't consider python/duck typing strongly typed as you can use objects however you want and any type problems won't become apparent until runtime. That seems enough for a chaotic rating, but maybe less so than some other scripting languages.
Yes, Python is dynamically/duck typed, but it's also strongly typed. You can't add a string and an int, for example. That kind of thing is possible to different extents, in PHP, Perl and Javascript.
>>> "string"*3
'stringstringstring'lorb wrote:enk wrote:Mat wrote:Hmm.. I'm probably using terminology wrong, but I didn't consider python/duck typing strongly typed as you can use objects however you want and any type problems won't become apparent until runtime. That seems enough for a chaotic rating, but maybe less so than some other scripting languages.
Yes, Python is dynamically/duck typed, but it's also strongly typed. You can't add a string and an int, for example. That kind of thing is possible to different extents, in PHP, Perl and Javascript.
You can't add them but you can multiply them. Makes it even more chaotic. Sometimes it's strongly typed and sometimes it isn't.
- Code: Select all
>>> "string"*3
'stringstringstring'
| | | |
| | | |
| lawful good | neutral good | chaotic good |
| | | |
| python | ruby | javascript |
| | | |
|----------------+--------------+-----------------|
| | | |
| | | |
| lawful neutral | true neutral | chaotic neutral |
| | | |
| java | C | perl |
| | | |
|----------------+--------------+-----------------|
| lawful evil | neutral evil | chaotic evil |
| | | |
| Ada | VB | PHP |
| | | |
| | | |
Users browsing this forum: No registered users and 3 guests