bootstrapworld / curriculum

6 stars 6 forks source link

Alias symbols in Pyret #1325

Closed schanzer closed 2 months ago

schanzer commented 1 year ago

It's annoying that in WeScheme we can just type sqrt, but in Pyret we have to type num-sqrt. I spoke to Joe at length about this, and he agreed to export aliases for these functions in a new essentials2023 context. That means num-sqrt will continue to work, but sqrt will work as well!

I created a tracking issue for it, but I need input from both @retabak and @flannery-denny to make sure it's complete.

(I will make any necessary changes to WeScheme as well)

retabak commented 1 year ago

oooooh! I am SO in favor of this! YAY!

flannery-denny commented 1 year ago

@schanzer I took a look. Couldn't think of anything else off the top of my head, so I looked at the DS contracts pages. Perhaps we want to include:

Wondering whether a look at Dorai's sexp code base might have a complete list of other functions we've identified as not being intuitive translations, but not sure where to find it...

From doing a find in files for *num-

retabak commented 1 year ago

Also: num-expt ?

schanzer commented 2 months ago

Noting that this was completed some time ago!