firescript
Version:
Firescript language
45 lines (30 loc) • 508 B
Markdown
Item
====
Description
Syntax
------
```
const num = 1
const str = '1'
num eql str // false
num == str // throw TypeError('Can not compare number and string')
--
if num == str // false
is num == str // throw TypeError('Can not compare number and string')
if num is num
```
```
is [expression]
[]
else
[]
```
```fire
const num left = 1
const str right = '1'
left == right // throw TypeError('Can not compare number and string')
```
```js
```