Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Coding Style Guidelines for Picat

18 views
Skip to first unread message

Neng-Fa Zhou

unread,
Jan 22, 2025, 1:20:35 PMJan 22
to Picat
There are no official coding style guidelines for Picat. However, I typically follow these spacing rules:

* Each indentation level consists of four spaces.

* Binary operators are surrounded by spaces, with one space before and one after the operator.

Similar to Prolog, since variable names in Picat begin with a capital letter, I do not include a space after commas.

For editing, I use the Emacs mode for Picat (based on the one by Rurban), available at: https://github.com/nfzhou/emacs-picat-mode/tree/main. While it's not perfect, it aligns well with my preferences.

NF
Reply all
Reply to author
Forward
0 new messages