Hacker News new | ask | show | jobs
by brandonbloom 3743 days ago
Meanwhile:

    Mathematica 10.0 for Mac OS X x86 (64-bit)
    Copyright 1988-2014 Wolfram Research, Inc.

    In[1]:= FullForm[x->y*z^w]

    Out[1]//FullForm= Rule[x, Times[y, Power[z, w]]]

    In[2]:= x\[UnionPlus]y\[RightTee]z

    Out[2]= x ⊎ y ⊢ z
There's no reason your programming language shouldn't be able to tell you what these things are called in English without an external reference.
2 comments

Or is there? queue x-files theme song
Some operators are so abstract that they don't really have a good name.

Eg if you are talking about groups in general, how do you pronounce the group operation ∘? At uni, we usually just called it Kringel.

The name can be arbitrary, as long as it's unambiguous. By the way, here's what mathematica says when I copy paste that and enter x∘y: SmallCircle[x,y]

Also fun:

    In[3]:= SpokenString[x\[SmallCircle]y]
    Out[3]= "SmallCircle of x and y"
Which can be turned in to sound:

    Speak[x\[SmallCircle]y]
Actually, it's not even unambiguous. In some sense, it's like an unbounded variable.