You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser should not panic but rather return a Result type indicating what failed. The client can opt to handle this more gracefully depending on the use-case. For example, printing an, "unknown token found while parsing," error.
EDIT: More ideal is replacing the panics with more robust type-modelling to avoid the catch-all in the match statements.
The text was updated successfully, but these errors were encountered:
The parser should not panic but rather return a Result type indicating what failed. The client can opt to handle this more gracefully depending on the use-case. For example, printing an, "unknown token found while parsing," error.
EDIT: More ideal is replacing the panics with more robust type-modelling to avoid the catch-all in the match statements.
The text was updated successfully, but these errors were encountered: