Yup!
Hmm... isn't Matlab dynamically typed so what does type-checking like that actually help with?
-
-
Not sure I understand what you mean. You can have a variable that is an integer type (say uint8 which is basically a byte with 0-255). The function checks if it is an integer variable.
-
-
Basically, I am talking about best practices in dynamically types languages. It's a programming issue you learn in undergrad in computer science — sorry I was unclear!
-
You need a try-catch block since it's dynamically typed.
-
I try (ironic) to avoid try-catch clauses like the plague. Anyway, only got up cause I couldn't sleep but I'm going back to bed now... :)
-
Exception handling is really good practice.
-
Yes perhaps I'm missing another thing here. I meant actual try-catch in Matlab where you don't know what the error is in the end. Makes things very hard to debug.
- 4 more replies
New conversation -
-
-
last time I check the only type Matlab has is a matrix--- as 1==[1] evaluates to True...
-
That's pretty disturbing.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

