3 ms·
When it comes to real vs float I should not have called the later nonsense. I agree that both have their place depending whether you want to express things at a
by weinzierl 3y ago
When it comes to real vs float I should not have called the later nonsense. I agree that both have their place depending whether you want to express things at a lower (closer to hardware or wire protocol) level or more abstractly.
It is still sad that languages like C (and even Rust) only offer the lower level types.
What you said about functions and procedures is also true. I still think that it is valuable to have a distinction syntactically, even if they are relatively similar under the hood. Maybe one day we will have a Pascal compiler that can enforce that functions are side-effect free...
- badsectoracula 3y ago> Maybe one day we will have a Pascal compiler that can enforce that functions are side-effect free... Pure functions are actually one of the WIP functionality in Free Pascal :-). AFAIK the ultimate goal is to have the compiler evaluate them at compile time where possible.