Thread View: comp.lang.misc
1 messages
1 total messages
Started by SA Courtenage
Mon, 16 Nov 1992 18:41
Re: languages which allow the introduction of new operators
Author: SA Courtenage
Date: Mon, 16 Nov 1992 18:41
Date: Mon, 16 Nov 1992 18:41
26 lines
823 bytes
823 bytes
Just out of interest, Gofer (a functional language v.similar to Haskell) allows the following to be defined. ------ cut here for Gofer script ------------ > >(#) :: Int -> Int -> Int >(#) n m = n + m + 1 --------------- end cut --------------------- Typing 3 # 4 then gives the result 8. Haskell is more sophisticated in this respect, through its type classes. Simon Courtenage Email: scourten@uk.ac.ucl.cs Dept of Computer Science University College London London WC1E England
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads