Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
Trust the World's Fastest VPN with Your Internet Security & Freedom - A Lifetime Subscription of PureVPN at 88% off. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Comment Dynamic Type Comparing [Re:Oh please] (Score 1) 196

In my opinion, dynamic languages should require, or at least encourage, one to specify what comparison type to use rather than rely on parameter (operand) analysis. The hard part is coming up with a nice syntax for such. I've had various discussion groups consider different suggestions, and found no consensus.

In the shorter term, one can roll their own functions and hope staff coders follow along. Example:

if (strCompare(a, '>', b)) {...}
if (numCompare(a, '<=', b)) {...}

Slashdot Top Deals

In specifications, Murphy's Law supersedes Ohm's.

Working...