--
---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/5355129a-a96b-413a-b026-8d715af3e281%40gmail.com.
The problem comes from the side effect caused by { if aHash[:age] = "" }, which adds an entry when it shouldn’t. This is contrary to common expectations and the behavior in most programming languages.
Softanza already handles this correctly, but I think Mahmoud should review this behavior and let Ring raise an error. In my case, I spent months trying to figure out why certain features in Softanza weren’t working. I never suspected this issue and tried several other approaches, which only complicated my code—until I finally discovered the root cause.
This illustrates how a single (undocumented) design decision can significantly complicate the programmer’s experience.
Best,
Mansour
--
---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/1a1a6c3e-c8f4-4145-ba8f-013a94929b36n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/7f5edd40-f677-43e0-af02-6271d118e172n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/6258ab8c-4eaa-4d8c-b37b-c868bd4c865fn%40googlegroups.com.
FALSE without adding anything. This way, a condition like if aList[:key] ... will not execute, preserving expected behavior. To view this discussion visit https://groups.google.com/d/msgid/ring-lang/cdfb8e7d-4d9b-41b0-aa3a-ac8fc778a5f0n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/89280d6e-266d-409a-bcee-6fe350656e8fn%40googlegroups.com.
Hello Mansour.
You're welcome. :-)
Best regards.
Antonio F.S.
----------------------------------------------------------------------