Author Topic: Is Nothing ...  (Read 6212 times)

0 Members and 1 Guest are viewing this topic.

tetrahidrocannabinol

  • Guest
Re: Is Nothing ...
« Reply #15 on: December 08, 2015, 06:32:13 PM »

Those last couple of snippets remind me :

I'm not really picking on VB, but is it the only language set that used the same symbol for the assignment operator and the equality test operator ??

I honestly don't know ... but I cannot think of another language that does.

And where is the problem?. Does anyone has bothered to try to learn how it works an interpreter and a compiler?

It gives me the impression that some users of this forum have a tendency to look for problems where none exist, in my country we call this "Buscarle tres pies al gato"


...
tetrahidrocannabinol,
after answering 100 posts here and demonstrating that you know what you're talking about you're allowed to make fun of the languages people use to program with. 

I'm working on it, but unfortunately now I have little free time

« Last Edit: December 08, 2015, 06:37:22 PM by tetrahidrocannabinol »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Is Nothing ...
« Reply #16 on: December 08, 2015, 07:26:32 PM »
< ..>
And where is the problem?.

< .. >

It's not a problem as such, but the usage does lead to confusion for people reading (and writing) the code.


< ..>
Does anyone has bothered to try to learn how it works an interpreter and a compiler?

< .. >

Yes.

but when it leads to situations like this it is an annoyance logically for the human mind.

Code - vb.net: [Select]
  1. Dim oldValue, currentValue As Integer
  2.  
  3. oldValue = currentValue = 2
  4.  
  5.  

Code - vb.net: [Select]
  1. Dim oldValue, currentValue As Integer
  2.  
  3. currentValue = 2
  4.  
  5. oldValue = currentValue = 2
  6.  
  7.  



Code - vb.net: [Select]
  1. Dim oldValue, currentValue As Integer
  2.  
  3. currentValue = 1
  4.  
  5. oldValue = currentValue = 2
  6.  
  7.  

Needing to stop reading  and perform some mental gymnastics to understand the writers intent is an embuggerance.
Of course, using/allowing numbers as Boolean values is part of the issue :)

tetrahidrocannabinol, please don't feel threatened '  I'm not attacking you or your language preference.


kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

tetrahidrocannabinol

  • Guest
Re: Is Nothing ...
« Reply #17 on: December 08, 2015, 08:51:08 PM »
...

Needing to stop reading  and perform some mental gymnastics to understand the writers intent is an embuggerance.
Of course, using/allowing numbers as Boolean values is part of the issue :)

tetrahidrocannabinol, please don't feel threatened '  I'm not attacking you or your language preference.

I do not feel threatened. Also, sometimes, I'm a little rough in my answers.
Anyway I have no preference for a particular language because, basically, all have a similar structure. And some "frameworks" they have many similarities, some looks "suspiciously inspired" in others, as .NET, which has a structure very similar to VCL (curiously, one of the main architects of .NET had also been one of the main architects of VCL)

Is this post is the beginning of a crusade against VBA/VB/VB.NET?. I say this because there are many more programming languages and pseudo-languages that deserve the same (or more) attention, like "lisp".

Kind regards.
« Last Edit: December 08, 2015, 08:57:50 PM by tetrahidrocannabinol »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Is Nothing ...
« Reply #18 on: December 08, 2015, 08:56:35 PM »
Quote
Is this post is the beginning of a crusade against VBA/VB/VB.NET?.

No, it's not.

If that was my intent I would have said so, believe me :)

and added:
Quote from: from me
I'm not attacking you or your language preference.

« Last Edit: December 08, 2015, 09:25:53 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.