aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2018-01-31docs: move source encoding sectionAndrew Kelley
2018-01-31add docs recommending to only have 1 cImportAndrew Kelley
2018-01-31add some docs for reflectionAndrew Kelley
2018-01-31*WIP* error setsAndrew Kelley
2018-01-30langref: remove page title headerAndrew Kelley
2018-01-30Improve documentation styling for mobile devicesMarc Tiehuis
- No overscrolling on small screens - Font-size is reduced for more content per screen - Tables + Code blocks scroll within a block to avoid page-widenening
2018-01-25syntax: functions require return type. remove `->`Andrew Kelley
The purpose of this is: * Only one way to do things * Changing a function with void return type to return a possible error becomes a 1 character change, subtly encouraging people to use errors. See #632 Here are some imperfect sed commands for performing this update: remove arrow: ``` sed -i 's/\(\bfn\b.*\)-> /\1/g' $(find . -name "*.zig") ``` add void: ``` sed -i 's/\(\bfn\b.*\))\s*{/\1) void {/g' $(find ../ -name "*.zig") ``` Some cleanup may be necessary, but this should do the bulk of the work.
2018-01-25rename "debug safety" to "runtime safety"Andrew Kelley
closes #437
2018-01-23cleanups that I meant to put in the previous commitAndrew Kelley
2018-01-23replace %defer with errdeferAndrew Kelley
See #632 now we have 1 less sigil
2018-01-22docgen: verify internal linksAndrew Kelley
2018-01-22add new kind of test: generating .h files. and moreAndrew Kelley
* docgen supports obj_err code kind for demonstrating errors without explicit test cases * add documentation for `extern enum`. See #367 * remove coldcc keyword and add @setIsCold. See #661 * add compile errors for non-extern struct, enum, unions in function signatures * add .h file generation for extern struct, enum, unions
2018-01-19fix docgen on windowsAndrew Kelley
2018-01-19temporary workaround for os.deleteTree not implemented for windows/macAndrew Kelley
See #709
2018-01-19docs: remove references to %% prefix operatorAndrew Kelley
also cleanup the table of contents
2018-01-19all doc code examples are now testedAndrew Kelley
improve color scheme of docs make docs depend on no external files fix broken example code in docs closes #465
2018-01-17ziglang.org home page no longer in this repoAndrew Kelley
update docs examples which use build-exe to be tested See #465
2018-01-17docgen: support executing exe code examplesAndrew Kelley
See #465
2018-01-17docgen: validate See Also sectionsAndrew Kelley
See #465
2018-01-17docgen auto generates table of contentsAndrew Kelley
See #465
2018-01-15clean up error return tracingAndrew Kelley
* error return tracing is disabled in release-fast mode * add @errorReturnTrace * zig build API changes build return type from `void` to `%void` * allow `void`, `noreturn`, and `u8` from main. closes #535
2018-01-09remove %% prefix operatorAndrew Kelley
See #632 closes #545 closes #510 this makes #651 higher priority
2018-01-07replace `a %% b` with `a catch b`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-07replace `%return` with `try`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-07update hello world docsAndrew Kelley
2018-01-03add december in review to reading material; fix docsAndrew Kelley
2018-01-03add noInlineCall to docsAndrew Kelley
2018-01-03doc fixesAndrew Kelley
2017-12-26move utf8 parsing to stdJosh Wolfe
source files no longer need to end with a newline
2017-12-24docs: fix typoAndrew Kelley
2017-12-23add source encoding rules to the docs. see #663Josh Wolfe
2017-12-22explicitly return from blocksAndrew Kelley
instead of last statement being expression value closes #629
2017-12-20add labeled loops, labeled break, labeled continue. remove gotoAndrew Kelley
closes #346 closes #630 regression: translate-c can no longer translate switch statements. after #629 we can ressurect and modify the code to utilize arbitrarily returning from blocks.
2017-12-19bring back code that uses export and fix testsAndrew Kelley
partial revert of 1fdebc1dc4881a00766f7c2b4b2d8ee6ad6e79b6
2017-12-19wip bring back export keywordAndrew Kelley
2017-12-18wip export rewriteAndrew Kelley
2017-12-13fix const and volatile qualifiers being dropped sometimesAndrew Kelley
in the expression `&const a.b`, the const (and/or volatile) qualifiers would be incorrectly dropped. closes #655
2017-12-04update docs regarding enums and unionsAndrew Kelley
2017-12-03rework enums and unions and their relationship to each otherAndrew Kelley
* @enumTagName renamed to @tagName and it works on enums and union-enums * Remove the EnumTag type. Now there is only enum and union, and the tag type of a union is always an enum. * unions support specifying the tag enum type, and they support inferring an enum tag type. * Enums no longer support field types but they do support setting the tag values. Likewise union-enums when inferring an enum tag type support setting the tag values. * It is now an error for enums and unions to have 0 fields. * switch statements support union-enums closes #618
2017-12-02ability to set tag values of enumsAndrew Kelley
also remove support for enums with 0 values closes #305
2017-11-30ability to specify tag type of enumsAndrew Kelley
see #305
2017-11-24update homepage docsAndrew Kelley
2017-11-20move base64 functions into structsJosh Wolfe
2017-11-20rework std.base64 apiJosh Wolfe
* rename decode to decodeExactUnsafe. * add decodeExact, which checks for invalid chars and padding. * add decodeWithIgnore, which also allows ignoring chars. * alphabets are supplied to the decoders with their char-to-index mapping already built, which enables it to be done at comptime. * all decode/encode apis except decodeWithIgnore require dest to be the exactly correct length. This is calculated by a calc function corresponding to each api. These apis no longer return the dest parameter. * for decodeWithIgnore, an exact size cannot be known a priori. Instead, a calc function gives an upperbound, and a runtime error is returned in case of overflow. decodeWithIgnore returns the number of bytes written to dest. closes #611
2017-11-16add documentation placeholders for unionsAndrew Kelley
2017-11-07std.io: introduce buffered I/O and change APIAndrew Kelley
I started working on #465 and made some corresponding std.io API changes. New structs: * std.io.FileInStream * std.io.FileOutStream * std.io.BufferedOutStream * std.io.BufferedInStream Removed: * std.io.File.in_stream * std.io.File.out_stream Now instead of &file.out_stream or &file.in_stream to get access to the stream API for a file, you get it like this: var file_in_stream = io.FileInStream.init(&file); const in_stream = &file_in_stream.stream; var file_out_stream = io.FileOutStream.init(&file); const out_stream = &file_out_stream.stream; This is evidence that we might not need any OOP features - See #130.
2017-09-30update C headers to clang 5.0.0Andrew Kelley
2017-09-25fix docsAndrew Kelley
2017-08-20move docs to websiteAndrew Kelley
2017-07-08better bigint/bigfloat implementationAndrew Kelley