LogFAQs > #979344907

LurkerFAQs, Active Database ( 12.01.2023-present ), DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicThere are zero good reasons for an assignment operator to have a return value.
kirbymuncher
03/13/24 11:03:25 AM
#15:


Tyranthraxus posted...
Because in strongly typed languages, attempting to assign a literal to a function always results in compile time errors. A script will let you do it and then crash later when $file.fullname doesn't exist because you accidentally made $file a string 10 lines ago.
that's not really inherent to scripting vs compiled, though. like I just gave the example that python does not let you assign in conditionals, so even if you typo there is no danger of accidentally overwriting values or functions. there's no reason other scripting languages couldn't do the same


---
THIS IS WHAT I HATE A BOUT EVREY WEBSITE!! THERES SO MUCH PEOPLE READING AND POSTING STUIPED STUFF
... Copied to Clipboard!
Topic List
Page List: 1