DoctorWkt / acwj

A Compiler Writing Journey
GNU General Public License v3.0
10.43k stars 1.01k forks source link

why not return 1 directly? #33

Closed logerrors closed 3 years ago

logerrors commented 3 years ago

I notice that some function will return (1) ,not return 1,why do that? CleanShot 2020-12-20 at 20 36 52@2x

Itai-Nelken commented 3 years ago

it doesn't matter, its the same.

DoctorWkt commented 2 years ago

It makes the parsing easier to parse only return(x) instead of both return(x) and return x. Cheers!