Reputation
26,494
Next tag badge:
217/100 score
18/20 answers
Badges
11 86 200
Impact
~387k people reached

Mar
10
asked Is there a way to TagSet a HoldAllComplete function?
Mar
9
comment Patternmatching sets
@Leonid Actually, I've found a case where Mathematica uses a similar approach. Check the Details under TextSearch. It uses List for And, Alternatives for Or and Except for Not. According to PrintDefinitions spelunking, there is a full-blown query-set-algebra, check e.g. TextSearch^IndexSearch^PackagePrivate^compileQuery and ...^exec: QNot, QUnion, QIntersection, QComplement, QString are the specific functions. (backticks are replaced by ^)
Mar
9
revised Guidelines for planning custom GUI in Mathematica
added 432 characters in body
Mar
9
comment How to store symbols in a package without being parsed?
While this is a nice solution, there is one aesthetic problem (the exposure of subcontexts) and one technical: the bulletproof generation of unique context names for each system. Nevertheless, deserves the +1.
Mar
8
awarded  Necromancer
Mar
8
comment How to store symbols in a package without being parsed?
It works nicely and provides a minimal overhead (wrapping each equation in boxed I can do easily). Let me just test it a bit more.
Mar
8
comment Unwanted evaluation of RHS of association in FilterRules
Submitted to TechSupport.
Mar
8
comment How to store symbols in a package without being parsed?
@jkuczm This sounds interesting. My only concern is that then each equation definition should either contain a BeginPackage[]-EndPackage[] or each symbol should be written with its full name. Both are pain in the ass if not done programmatically. Would you perhaps care to develop an answer based on the idea?
Mar
8
revised How to store symbols in a package without being parsed?
added 203 characters in body
Mar
8
comment How to store symbols in a package without being parsed?
This might just be what I'm looking for. Interestingly, I couldn't find an example where Mathematica does something similar with e.g. ExampleData. They are very careful to explicitly protect package variables, or use either strings or formal symbols.
Mar
8
revised How to store symbols in a package without being parsed?
added 148 characters in body
Mar
8
asked How to store symbols in a package without being parsed?
Mar
8
accepted How to find the package file that stores a certain symbol?
Mar
6
comment Difference between Association and Dispatch
@Murta Just a sidenote: there is a huge difference between rule-lists and associations when used in Lookup, though it only manifests if there are redundant keys. Association automatically removes those, keeping the last one, leading to {Lookup[{a -> First, b -> 0, a -> Last}, a], Lookup[<|a -> First, b -> 0, a -> Last|>, a]} returning {First, Last}.
Mar
4
awarded  Popular Question
Mar
1
comment Unwanted evaluation of RHS of association in FilterRules
@Kuba, that's true, but unfortunately KeyTake can not handle a pattern as a second argument correctly, e.g. a|c. By "correctly" I mean "how I would expect". Which also goes for the behaviour of the association iside FilterRules: "unexpected by me".
Feb
29
asked Unwanted evaluation of RHS of association in FilterRules
Feb
26
awarded  Good Answer
Feb
24
awarded  Enlightened
Feb
24
awarded  Nice Answer