X10 is a still maturing code base that has been written over several years by a number of people. You will find that some of the code does not live up to product quality standards. Don't hesitate to help rectify this by contributing clean-ups, bug fixes, and missing documentation to the project. We are trying to apply more uniform coding conventions to newly developed code, to clean up older code, and to automate some basic checking of those coding conventions that are uniformly followed already.
// vim:tabstop=4:shiftwidth=4:expandtab
Many files already have this modeline.
Every file should begin with the standard license and copyright header shown below (adjusted to use the comment characters appropriate to the source file).
/* * This file is part of the X10 project (http://x10-lang.org). * * This file is licensed to You under the Eclipse Public License (EPL); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.opensource.org/licenses/eclipse-1.0.php * * (C) Copyright IBM Corporation 2006-2011. */
The following applies to both Java code and X10 code.
All files should contain descriptive comments in Javadoc™ form so that documentation can be generated automatically. Of course, additional non-Javadoc source code comments should appear as appropriate.
The X10doc format is very similar to that of Javadoc. Please see the X10 files in x10.lang and x10.array for examples.