User loginNavigation |
archivesBarendregt's ConventionHi, I am doing some proofs on a calculus with existential types and I am fairly liberally applying Baredregt's convention (approximately that bound variables are distinctly named). My assumption is that I have to justify using this convention and that that justification is along the lines of 'the rules of the calculus abide by the convention'. However, I can not find any information about a formal way of justifying this. Does anyone have experience of this, or pointers to relavent papers? Thanks, Nick Relating Complexity and Precision in Control Flow AnalysisRelating Complexity and Precision in Control Flow Analysis, David Van Horn and Harry Mairson. ICFP 2007.
There's ton of really good stuff in here; I was particularly fascinated by the fact that 0-CFA is exact for multiplicatively linear programs (ie, that use variables at most once), because linearity guarantees that every lambda can flow to at most one use site. By neelk at 2008-02-01 18:47 | Implementation | Lambda Calculus | Theory | 2 comments | other blogs | 9788 reads
A name for this form of variable capture?I have a question, which has arisen after running into an unexpected variable capture in a Python program I am working on. Here is a sample: def codeExample1(hashTable): def makeGenerator(): for keyName in hashTable: def valueGenerator(): for keyValue in hashTable[keyName]: yield keyValue yield (keyName,valueGenerator()) return makeGenerator()
Now, I was expecting What occurred instead was that To correct this unexpected behavior, one would rewrite def codeExample1(hashTable): def makeGenerator(): for keyName in hashTable: def valueGenerator(_keyName): for keyValue in hashTable[_keyName]: yield keyValue yield (keyName,valueGenerator(keyName)) return makeGenerator() So that was a bit of a long lead in, but what I'm trying to get at is what is the name for the type of variable capture exhibited by Python in this example and what is the name of the variable capture I was expecting to occur? |
Browse archivesActive forum topics |
Recent comments
22 weeks 1 day ago
22 weeks 2 days ago
22 weeks 2 days ago
44 weeks 3 days ago
48 weeks 5 days ago
50 weeks 2 days ago
50 weeks 2 days ago
1 year 6 days ago
1 year 5 weeks ago
1 year 5 weeks ago