I Language: Case Statements Removed
Posted June 18, 2011 by User 1
Recently, a new case statement was announced, the case/in statement which was really just the old case/of statement. The case/of statement replacing it was essentially a series of if/else statements behind it providing a 2% speed bonus. The latter statement has been decided to be unnecessary and has been removed as there are much better ways to speed up using lookup tables (providing as much as 30% increase in speed).
The case/in statement has now been renamed to find/in. Case statements are generally faster as they generally do not do a linear search to find the statement to execute. The find/in statement does do a linear search and scans through tables to find the correct result. To avoid confusion in terms of efficiency, the case/in statement is gone.
Go to I Language project page
More news from the I Language project.
Go to all projects' news index