Worst ideas/features in programming languages?

Era Scarecrow rtcvb32 at yahoo.com
Wed Dec 29 03:28:01 UTC 2021


On Monday, 11 October 2021 at 15:59:10 UTC, Atila Neves wrote:
> * Worst features implemented in a non-toy language

  I did some programming at a tech company in 2011, and was 
introduced to ASP. The default in the webpage-based language was 
variables were passed around using reference.

  This of course turns the whole programming understanding on it's 
head because you assume you pass copies of native types or copy 
structs to the stack and you can't affect the original variables 
(unless you intend to or they are classes passed around).

So to get around to expected normal behavior you have to put 
ByVal everywhere on all arguments.


More information about the Digitalmars-d mailing list