Skip to content

Commit

Permalink
get rid of XXX comment (#1178)
Browse files Browse the repository at this point in the history
Let's not worry about using reserved words as record fields for now. It would technically work OK but I'm not sure how important it is.

See #1177 for the fix to the root issue that let this through the merge process.
  • Loading branch information
byorgey authored Mar 25, 2023
1 parent a4c8057 commit af92865
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Swarm/Language/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ parseTypeAtom =
<|> TyRcd <$> brackets (parseRecord (symbol ":" *> parseType))
<|> parens parseType

-- XXX reserved words should be OK to use as record fields?
parseRecord :: Parser a -> Parser (Map Var a)
parseRecord p = (parseBinding `sepBy` symbol ",") >>= fromListUnique
where
Expand Down

0 comments on commit af92865

Please sign in to comment.