Comment

Comment by Lucretia9

Ada has ranges and subtypes.

  type Angles is 0 .. 360;
  subtype Acute_Angles is range Angles'First .. 90;
Subtypes can be used with the parent type without conversions.

Pascal only has subranges, iirc.

parent Lucretia9 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton