Elis Byberi
Elis Byberi
"As a model of a complex system becomes more complete, it becomes less understandable. Alternatively, as a model grows more realistic, it also becomes just as difficult to understand as...
`let` should be immutable in its scope only, and possibly not visible outside its block scope. If we shadow it in its scope, it would not make sense to use...
@Mogball Yes, it's a conditional expression (function scope), which is equivalent to a block of if/else statements (lexical scope). It does not make sense. That's not how Python works; it's...
@Mogball Today, we often find ourselves programming in multiple languages. We all know that it's not easy to switch between programming languages. For example, after a long week of programming...
@Mogball If you declare the variable `i` within the function scope, it will not be useful for the algorithm's logic. This is because you are printing the value of the...
@Mogball I cannot see how this is going to help us: ``` python def foo(k): i: int = 0 for i in range(k): pass print(i) if not foo(0): print("Nothing happened!")...
@Mogball Just for the record, the code has a logical error. The case when `k` is equal to 0 must be handled. ``` python def foo(k): i: int = 0...
@iamshreeram Compile and run with optimizations with the -release option: `time codon run -release fib.py`
@iamshreeram Note that `time codon run -release fib.py` measures the time to compile and run the program. You should build it first and then time the execution. Build: `codon build...
@xiaxinmeng If the "filein" and/or "fileout" file is missing, it will result in an error, which is the expected behavior. Furthermore, it appears that both files are being opened with...